package com.feicheng.persistence.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.feicheng.persistence.entity.Client;
import com.feicheng.persistence.mapper.ClientMapper;
import com.feicheng.persistence.model.ClientMain;
import com.feicheng.persistence.model.VoucherRecordMain;
import com.feicheng.persistence.service.IClientService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cailongyang
 * @since 2021-12-14
 */
@Service
public class ClientServiceImpl extends ServiceImpl<ClientMapper, Client> implements IClientService {
    @Override
    public Page<ClientMain> getClientsByPage(Page<ClientMain> page, QueryWrapper<ClientMain> wrapper) {
        return this.getBaseMapper().getClientsByPage(page, wrapper);
    }

    @Override
    public List<ClientMain> getClientById(QueryWrapper<ClientMain> queryWrapper) {
        return this.getBaseMapper().getClientById(queryWrapper);
    }


    public List<ClientMain> clientVipDetails(QueryWrapper<ClientMain> queryWrapper) {
        return this.getBaseMapper().clientVipDetails(queryWrapper);
    }

    @Override
    public List<ClientMain> clientDepositDetails(QueryWrapper<ClientMain> queryWrapper) {
        return this.getBaseMapper().clientDepositDetails(queryWrapper);
    }

    @Override
    public List<ClientMain> clientOrderDetails(QueryWrapper<ClientMain> queryWrapper) {
        return this.getBaseMapper().clientOrderDetails(queryWrapper);
    }

   /* @Override
    public List<ClientMain> getClientById(QueryWrapper<ClientMain> queryWrapper) {
        return this.getClientById(queryWrapper);
    }*/


    @Override
    public List<VoucherRecordMain> getVoucherRecordById(QueryWrapper<VoucherRecordMain> queryWrapper) {
        return this.getVoucherRecordById(queryWrapper);
    }

}
